//#define __FORCE_TRACE__
//#define __FORCE_DEBUG__
//#define __FORCE_INFO__
#define THIS_FILE "tools\fn_deleteWaypoints.sqf"
#include <tmf_constants.h>
#include <tmf_macros.h>

TRACE_1("Start",_this);
TMFPROFILERSTART;

private ["_grp","_i","_wp"];
DEFAULT_PARAM(_grp,0,east);

for [{_i = 0},{_i < (count (waypoints _grp))},{_i = _i + 1}] do {
	deleteWaypoint [_grp, _i];
};
	
TRACE_1("End",count (waypoints _grp));
TMFPROFILERSTOP;
